﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 物流信息管理系统</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")

</head>
<body>
    <div class="navbar navbar-inverse">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("物流信息管理系统", "Index", "Home", null, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li>@Html.ActionLink("主页", "Index", "Home")</li>
                    @if (Request.IsAuthenticated && User.IsInRole("Receiver"))
                    {
                        <li>@Html.ActionLink("运单管理", "Index", "ExpressGoods")</li>
                    }
                    @if (Request.IsAuthenticated && User.IsInRole("Distributor"))
                    {
                        <li>@Html.ActionLink("运单入库", "Select", "ExpressGoodsStorages")</li>
                        <li>@Html.ActionLink("货舱管理", "Index", "ExpressGoodsStorages")</li>
                        <li>@Html.ActionLink("车辆调度", "Index", "ExpressDispatches")</li>
                    }
                    @if (Request.IsAuthenticated && User.IsInRole("Admin"))
                    {
                        <li class="dropdown">
                            <a class="dropdown-toggle" href="javascript:void(0);" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">系统管理 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li>@Html.ActionLink("仓库管理", "Index", "ExpressStorages")</li>
                                <li>@Html.ActionLink("车辆管理", "Index", "ExpressVehicle")</li>
                                <li>@Html.ActionLink("系统结算", "Index", "ExpressAnalysis")</li>
                                <li>@Html.ActionLink("角色管理", "Index", "RolesAdmin")</li>
                                <li>@Html.ActionLink("用户管理", "Index", "UsersAdmin")</li>
                            </ul>
                        </li>
                    }
                    <li>@Html.ActionLink("关于", "About", "Home")</li>
                    <li>@Html.ActionLink("联系方式", "Contact", "Home")</li>
                </ul>
                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>&copy; @DateTime.Now.Year - 物流信息管理系统</p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>
